#!/bin/sh

ver_old=$2

if [ "$(apk version -t "$ver_old" '3.20.1-r1')" = '<' ]; then
        # need to remove world permissions from status file, to dodge
        # error: state file /var/lib/logrotate.status is world-readable
        # 640 matches the spec file
        chmod 640 /var/lib/logrotate.status
fi

exit 0
